-
-
Notifications
You must be signed in to change notification settings - Fork 95
Run compatibility test only in main branch. #397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
2c5bf88
to
fec6c21
Compare
Moved the compatibility check into it's own workflow. The workflow uses a flag to specify whether the step is enabled, as it cannot just be skipped, due to the all-jobs-complete dependency on the compatibility-test.
fec6c21
to
e796473
Compare
.github/workflows/main.yml
Outdated
name: Compatibility test | ||
uses: ./.github/workflows/compatibility-test.yml | ||
with: | ||
enabled: ${{ github.ref == 'refs/heads/main' }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting idea, but maybe it would be simpler to skip the job here rather than using a parameter to skip inside the compatibility-test
workflow?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the job is now added to all-jobs-completed
would skipping the job here instead of in the workflow cause all-jobs-completed
to fail if not on main
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, since this is an optional job, it doesn't need to be listed as a dependency of all-jobs-completed
necessarily.
enabled-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Skipping compatibility test | ||
if: !inputs.enabled | ||
run: echo "Skipping compatibility test" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we remove this?
enabled-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Skipping compatibility test | |
if: !inputs.enabled | |
run: echo "Skipping compatibility test" |
.github/workflows/main.yml
Outdated
with: | ||
enabled: ${{ github.ref == 'refs/heads/main' }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we replace this with the following?
with: | |
enabled: ${{ github.ref == 'refs/heads/main' }} | |
if: ${{ github.ref == 'refs/heads/main' }} |
.github/workflows/main.yml
Outdated
- check-workflows | ||
- analyse-code | ||
- build-lint-test | ||
- compatibility-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we remove this?
- compatibility-test |
inputs: | ||
enabled: | ||
required: false | ||
type: boolean | ||
default: true | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we remove these lines?
inputs: | |
enabled: | |
required: false | |
type: boolean | |
default: true |
needs: enabled-check | ||
if: inputs.enabled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we remove these lines?
needs: enabled-check | |
if: inputs.enabled |
…sulting simplifications
name: Compatibility test | ||
uses: ./.github/workflows/compatibility-test.yml | ||
if: ${{ github.ref == 'refs/heads/main' }} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Adds methods `wallet_requestExecutionPermissions` and `wallet_revokeExecutionPermission`, as defined in this revision of the EIP-7715 specification ethereum/ERCs#1098. This supports Readable Permissions project, and is related to the following PRs: - MetaMask/delegation-toolkit#60 - MetaMask/metamask-extension#35193 Note: workflows are failing due to existing problems, fixed by #397
This is the release for version 17.1.0. ``` a10c7fb feat: add RPC methods described in (revised) EIP-7715 (#396) 45ed998 Run compatibility test only in main branch. (#397) ``` --------- Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Jeff Smale <6363749+jeffsmale90@users.noreply.github.com> Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>
Moved the compatibility test into it's own workflow.
This implements the change described here MetaMask/metamask-module-template#269, ensuring that the compatibility test continues to provide value in identifying issues, but does not hold up individual PRs that do not introduce these issues.
The workflow uses a flag to specify whether the compatibility test is enabled, keeping the branching logic in the main workflow file. The compatibility-test.yml workflow cannot be a single job withif: inputs.enabled
, because this would mark the workflow as skipped, causing theall-jobs-complete
job to also be marked as skipped.all-jobs-complete
does not depend oncompatibility-test
socompatibililty-test
can simply be skipped in non-main branches.